package com.study.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/** 意识形态中的核心价值观新闻 实体类
 * (Jzg)实体类
 *
 * @author makejava
 * @since 2022-09-22 16:15:01
 */
@Data
@TableName(value = "jzg")
public class Jzg implements Serializable {
    private static final long serialVersionUID = 780406126682224389L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    
    private String title;
    
    private String source;

    @TableField(value = "publish_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;
    @TableField(value = "news_context")
    private String newsContext;
    @TableField(value = "read_nums")
    private Integer readNums;
    @TableField(value = "likes_nums")
    private Integer likesNums;
    @TableField(value = "collect_nums")
    private Integer collectNums;



}

